package com.addzero.web.ui.hooks.tree

import androidx.compose.runtime.Composable

// 树节点数据模型
data class TreeNode<T>(
    val id: String,
    val label: String,
    val data: T,
    val type: NodeTypes = NodeTypes.DEFAULT,
    val children: List<TreeNode<T>> = emptyList(),
    val level: Int = 0,
    val customRender: @Composable ((TreeNode<T>) -> Unit)? = null,
    val isEditable: Boolean = true
)
